package xyz.xmh.pattern.j2ee.businessdelegatepattern;

/**
 * @author Administrator
 * <p>
 * 业务查询类
 */
public class BusinessLookUp {

    private static final String EJB = "EJB";

    public BusinessService getBusinessService(String serviceType) {
        if (EJB.equalsIgnoreCase(serviceType)) {
            return new EjbServiceImpl();
        }
        else {
            return new JmsServiceImpl();
        }
    }
}
